package com.aliang.shopping.model.enums;

/**
 * 订单状态枚举类
 * 0待付款，1待发货，2待收货，3待评价，4已完成，5已取消
 */
public enum OrdersStatusEnum {
    WAIT_PAYMENT(0, "待付款"),
    WAIT_DELIVERY(1, "待发货"),
    WAIT_RECEIVE(2, "待收货"),
    WAIT_EVALUATE(3, "待评价"),
    FINISH(4, "已完成"),
    CANCELLED(5, "已取消"),
    REFUNDED(6, "已退款");

    private Integer code;
    private String message;

    OrdersStatusEnum(Integer code, String message) {
        this.code = code;
        this.message =message;
    }

    public Integer getCode() {
        return code;
    }
}
